package com.ruoyi.web.contrller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.web.domain.Jilu;
import com.ruoyi.web.service.IJiluService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 操作记录Controller
 */
@RestController
@RequestMapping("/warehouse/jilu")
public class JiluController extends BaseController {
    @Autowired
    private IJiluService jiluService;

    /**
     * 查询操作记录列表
     */
    @PreAuthorize("@ss.hasPermi('warehouse:jilu:list')")
    @GetMapping("/list")
    public TableDataInfo list(Jilu jilu)
    {
        startPage();
        List<Jilu> list = jiluService.selectJiluList(jilu);
        return getDataTable(list);
    }

}
